package com.aixin.csopuser.repository;

import com.aixin.csopuser.domain.AgentInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Optional;

public interface AgentInfoRepository extends JpaRepository<AgentInfo,Long>, JpaSpecificationExecutor<AgentInfo> {

    Optional<AgentInfo> findByAgentCode(String agentCode);
}
